<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{BEESCRM:$title}</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">
        html,body {
            overflow-x: visible;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <div class="header header2 text-center">
        <a href="javascript:history.go(-1);" class="iconfont icon-zuo left"></a>

        <div class="font-16">历史</div>
    </div>
    <div class="content padding-12">
        <volist name="data" id="vo">
            <if condition="$vo['type'] eq 1">
                <div onclick="window.location.href='/Complaint/Common/complaintDetails/employee_restaurant_id/{BEESCRM:$vo.employee_restaurant_id}/employee_id/{BEESCRM:$vo.employee_id}/id/{BEESCRM:$vo.id}/irs_id/{BEESCRM:$irs_id}';return false"
                     class="list flex-1">
                    <div class="house">
                        <img onerror="this.src='/assets/complaint/images/house.jpg'" src="{BEESCRM:$vo.restaurant_img}"
                             alt="">
                    </div>
                    <div class="right">
                        <div class="name font-14 gray">{BEESCRM:$vo.apartment_name}</div>
                        <div class="gray2 font-16 margin-t2">

                    <span class="pull-right orange margin-r20">已投诉
                    </span>
                            <span>{BEESCRM:$vo.create_time|date="Y-m-d",###}</span>
                        </div>
                    </div>

                </div>
                <else/>
                <div onclick="window.location.href='/Complaint/Common/commentDetails/restaurant_id/{BEESCRM:$vo.restaurant_id}/id/{BEESCRM:$vo.id}/irs_id/{BEESCRM:$irs_id}';return false"
                     class="list flex-1">
                    <div class="house">
                        <img onerror="this.src='/assets/complaint/images/house.jpg'" src="{BEESCRM:$vo.restaurant_img}"
                             alt="">
                    </div>
                    <div class="right">
                        <div class="name font-14 gray">{BEESCRM:$vo.apartment_name}</div>
                        <div class="gray2 font-16 margin-t2">

                    <span class="pull-right orange margin-r20">
                        已评论
                  </span>
                            <span>{BEESCRM:$vo.create_time|date="Y-m-d",###}</span>
                        </div>
                    </div>

                </div>
            </if>
        </volist>
    </div>
    <div class="blank text-center flex-3">
    </div>
    <div class="bottom-hint text-center flex-3" ><span class="margin-4 gray2"  id="more"></span></div>
</div>
<include file="Common:load"/>
</body>
<script src="/assets/complaint/js/jquery-2.1.0.min.js"></script>
<script src="/assets/complaint/js/public.js"></script>
<script src="/assets/complaint/js/layer.js"></script>
<script>
    var height = $(window).height();
    $('.wrapper').css('minHeight', height);
</script>
<script type="text/javascript">
    var page =1;
    $(window).scroll(function () {
        if ($(document).scrollTop() + $(window).height() > $(document).height() - 100) {
            ajax_get_order();
        }
    });
    function ajax_get_order(){
        page +=1;
        $.ajax({
            data:{page: page,is_ajax:1},
            method: 'post',
            dataType: 'html',
            url: '/Complaint/Common/history/irs_id/{BEESCRM:$irs_id}',//+tab,
            success: function(data)
            {
                if(data == ''){
                    $('#more').text('已经到底了，别扯了');
                }else
                {
                    $(".content").append(data);
                }
            }
        });
    }
//    $(window).scroll(function() {
//        if($(document).scrollTop() + $(window).height() > $(document).height() - 100) {
//            ajax_get_order();
//        }
//    });
    var height = $(window).height();
    $('.wrapper').css('minHeight', height);
</script>
</html>